<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
		<meta name="author" content="金西振" />
		<title></title>
		<style></style>
	</head>
	<body>
		<h1>历史记录1</h1>
		<!-- 使用a标签打开新的页面会产生一条新的历史记录 -->
		<a href="./04 历史记录2.html">去历史记录2</a>
		<button onclick="go()">去历史记录2</button>
		<script>
			function go() {
				console.log('go: ');
				// 前进：访问下一条历史记录
				// history.forward();
        history.go(1);
			}
		</script>
	</body>
</html>
